package game;

import java.awt.Graphics;
import java.awt.event.KeyEvent;
import java.awt.geom.Point2D;

public class Instruction extends Scene{
	
	Background bg;
	boolean clicked, released;
	
	public Instruction()
	{
		bg = new Background(11, new Point2D.Double(0, 0), new Point2D.Double(800, 600));
	}
	
	@Override
	public void update() {
		if (Keyboard.getInstance().isKeyPressed(KeyEvent.VK_ESCAPE))
			clicked = true;
		if(Keyboard.getInstance().isKeyPressed(KeyEvent.VK_ESCAPE) == false && clicked == true)
			SceneManager.changeScene(0);
	}

	@Override
	public void draw(Graphics g) {
		bg.draw(g);
	}

}
